﻿namespace Snmp.Agent.DataLoader
{
    public enum DataType
    {
        OctetString,
        Integer32,
        ObjectIdentifier,
        
    }

    public class DataTypeConverter
    {
        private const string OctetStringPrefix = "s";
        private const string Integer32Prefix = "i";
        private const string ObjectIdentifierPrefix = "o";

        public static string GetDataTypePrefix(DataType type)
        {
            string typePrefix = null;

            switch(type)
            {
                case DataType.OctetString:
                    typePrefix = OctetStringPrefix;
                    break;
                case DataType.Integer32:
                    typePrefix = Integer32Prefix;
                    break;
                case DataType.ObjectIdentifier:
                    typePrefix = ObjectIdentifierPrefix;
                    break;
            }

            return typePrefix;
        }
    }
}
